import axios from "axios";

// 创建配置好的 axios 实例
const apiClient = axios.create({
  baseURL: "http://8.134.172.28:3008",
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
  },
});

// 响应拦截器 - 直接返回响应数据
apiClient.interceptors.response.use(
  (response) => response.data,
  (error) => Promise.reject(error)
);

export default apiClient;
